using Microsoft.Data.SqlClient;

namespace PoemGame.Query.Dapper.Test
{
    public class UnitTest1
    {
        [Fact]
        public async Task Test1()
        {
            var conn = new SqlConnection("Server=(local);Database=MyPoemGame;uid=sa;pwd=82354699;Encrypt=False");
            var rep = new PlayerQuery(conn);
            var player=await rep.GetPlayerResAsync(Guid.Parse("38424030-136F-448B-AE42-A70BF60D2B46"));

            Assert.NotNull(player);
            Assert.Equal("zhangsan",player?.UserName);
        }
    }
}